<template>
  <BoTable :request="fetchList" :columns="columns"></BoTable>
</template>

<route lang="json">
{
  "meta": {
    "title": "地震触发实时数据"
  }
}
</route>

<script setup lang="tsx">
import { computed } from 'vue';
import { BoTable, BoTableProps } from '@boeyo/ui';
import { fetchList } from './api';

const columns = computed<BoTableProps['columns']>(() => {
  return [
    {
      title: '开始时间',
      dataIndex: 'startTime',
    },
    {
      title: '到达时间',
      dataIndex: 'startTime',
    },
    {
      title: '结束时间',
      dataIndex: 'startTime',
    },
    {
      title: '地震事件信息',
      dataIndex: 'startTime',
    },
    {
      title: '震中距（km）',
      dataIndex: 'startTime',
    },
    {
      title: '数据采集对象',
      dataIndex: 'startTime',
    },
    {
      title: '操作',
      dataIndex: '_actions',
      actions(opt) {
        return [
          {
            text: '地震触发数据',
          },
        ];
      },
    },
  ];
});
</script>
